package edu.ubb.scp.model;

import java.lang.reflect.Field;

public class CustomerTest implements Model {
	private int CustomerID;
	private int TestID;
	private String Score;

	public CustomerTest(int customerID, int testID, String score) {
		super();
		CustomerID = customerID;
		TestID = testID;
		Score = score;
	}

	public CustomerTest() {

	}

	public int getCustomerID() {
		return CustomerID;
	}

	public void setCustomerID(int customerID) {
		CustomerID = customerID;
	}

	public int getTestID() {
		return TestID;
	}

	public void setTestID(int testID) {
		TestID = testID;
	}

	public String getScore() {
		return Score;
	}

	public void setScore(String score) {
		Score = score;
	}

	@Override
	public String toString() {
		return "CustomerTest [CustomerID=" + CustomerID + ", TestID=" + TestID
				+ ", Score=" + Score + "]";
	}

	@Override
	public Field getPrimaryKey() {
		return null;
	}

	@Override
	public Field[] getKeys() {
		try {
			return new Field[] { CustomerTest.class.getDeclaredField("CustomerID"),
					CustomerTest.class.getDeclaredField("TestID") };
		} catch (NoSuchFieldException e) {
			e.printStackTrace();
		} catch (SecurityException e) {
			e.printStackTrace();
		}
		return new Field[] {};
	}
}
